Ext.Loader.setConfig({
    enabled : true,
    paths : {
        'Ext.ux' : 'ext/ux',
        'Zorn' : 'zorn'
    }
});

$ = function() {
	var x = {
		user : {
		    role : {},
		    component : {},
		    profile : {}
		}
	};

	return {
	    profile : {
		    get : function(key) {
			    return key;
		    }
	    },
	    c : function(id) {
		    return Ext.ComponentManager.get(id);
	    },
	    s : function(id) {
		    return Ext.data.StoreManager.lookup(id);
	    },
	    q : function(selector, root) {
		    return Ext.ComponentQuery.query(selector, root);
	    },
	    alert : function() {

	    },
	    confirm : function() {

	    },
	    unmask : function() {
		    Ext.defer(function() {
			    Ext.get('loading').remove();
			    Ext.get('loading-mask-shim').remove();
			    Ext.fly('loading-mask').animate({
			        opacity : 0,
			        remove : true
			    });
		    }, 500);
	    }
	};
}();

Ext.application({
    name : 'Platform',
    appFolder : 'platform',
    launch : function() {
	    this.getController('Platform.user.controller.Init');
    }
});